{% extends "frontend/common/base.html" %}<!--继承基础模板-->
{% block content %}<!--自定义模板区域-->
<div class="col-xs-12 col-sm-12">
    <p class="pull-right visible-xs">
        <button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
    </p>
    <div class="jumbotron">
        <h1>邮件自动分发系统-运营者中心!</h1>
        <p>查看当前运营者邮件状态.</p>
    </div>
    <div class="row">
        <div class="col-xs-6 col-lg-4">
            <h2>配置邮件模板信息</h2>
            {% if msg %}
            <p style="color:red">{{msg}}</p>
            {% endif %}
            <form action="/my/email/template" method="post">
                {{ form.csrf_token }}
                {{ form.id }}
                <div class="form-group">
                    {{ form.subject.label }}{{ form.subject }}
                </div>
                <div class="form-group">
                    {{ form.sender_nickname.label }}{{ form.sender_nickname }}
                </div>
                <div class="form-group">
                    {{ form.content.label }}{{ form.content }}
                </div>
                <div class="form-group">
                    {{ form.active.label }}{{ form.active }}
                </div>
                <div class="form-group">
                    {{ form.submit }}
                </div>
            </form>
        </div><!--/.col-xs-6.col-lg-4-->
    </div><!--/row-->
</div><!--/.col-xs-12.col-sm-9-->
{% endblock %}